<template>
  <div>
    LeftForm
    <v-text-field v-model="textvalue" label="Solo" placeholder="Placeholder" solo></v-text-field>
  </div>
</template>

<script>
export default {
  // LeftForm 左右布局表单
  name: 'LeftForm',

  components: {},

  props: {},

  data() {
    return {
      textvalue: ''
    }
  },

  computed: {},

  watch: {},

  created() {},

  mounted() {},

  destroyed() {
    console.log('left form is destoryed')
  },

  methods: {
    initWebSocket() {
      // 初始化weosocket
      const wsuri = process.env.WS_API + '/websocket/threadsocket' // ws地址
      this.websock = new WebSocket(wsuri)
      this.websocket.onopen = this.websocketonopen

      this.websocket.onerror = this.websocketonerror

      this.websock.onmessage = this.websocketonmessage
      this.websock.onclose = this.websocketclose
    }
  }
}
</script>

<style lang="scss" scoped></style>
